/*
 * @version: 1.0
 * @Author: zhl
 * @Date: 2021-09-01 18:50:36
 * @LastEditors: zhl
 * @LastEditTime: 2021-09-30 17:06:06
 * @Description: file content
 */

#ifndef __DLT698_GLOBAL_H__
#define __DLT698_GLOBAL_H__

#include "CConfigManager.h"
#include "MessageManager.h"
#include "CThreadPool.h"


#define REQUEST_TOPIC(APPNAME, PORT)   APPNAME "/uartManager/JSON/transparant/notification/"+PORT+"/data"
#define RESPONSE_TOPIC(APPNAME, PORT)  "uartManager/" APPNAME "/JSON/transparant/notification/"+PORT+"/data"




#ifdef __cpluscplus
extern "C"{
#endif

extern std::shared_ptr<CConfigManager> dlt698_global_conf;

extern std::unordered_map<std::string, std::shared_ptr<MessageManager>> g_handler;
extern std::unordered_map<int64_t, std::unordered_map<std::string, std::list<std::string>>> g_dev_content;

extern int get_thread_num();
extern void save_send_log(int64_t dev_id, int64_t task_id, char *buf, int len);
extern void save_recv_log(int64_t dev_id, int64_t task_id, char *buf, int len);

#ifdef __cpluscplus
}
#endif









#endif /* __DLT698_GLOBAL_H__ */
